package com.study.designpartten.template;

public abstract class Cook {

    public void buy(){
        System.out.println("f---buy");
    }

    public void watch(){
        System.out.println("f----watch");
    }

    public void eat(){
        System.out.println("f-----eat");
    }

    public final void cook(){

        buy();
        watch();
        eat();

    }

}
